Class symantec.itools.awt.image.LightenFilter
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.awt.image.LightenFilter
Object
|
+----ImageFilter
|
+----RGBImageFilter
|
+----symantec.itools.awt.image.LightenFilter
- public class LightenFilter
- extends RGBImageFilter
An Image filter to use for lightening an Image a specified percentage.
- Version:
- 1.1, July 8, 1997
- Author:
- Symantec
-
errors
- Error strings.
-
percent
- The percentage to lighen when filtering.
-
symantec.itools.awt.image.LightenFilter()
- Constructs a default LightenFilter.
-
symantec.itools.awt.image.LightenFilter(double)
- Constructs a LightenFilter.
-
filterRGB(int, int, int)
- Filters an RGB value by the current lighten percentage.
-
getPercent()
- Gets the percentage to fade when filtering.
-
setPercent(double)
- Sets the percentage to fade when filtering.
errors
protected transient java.util.ResourceBundle errors
- Error strings.
percent
protected double percent
- The percentage to lighen when filtering.
- See Also:
- getPercent, setPercent
LightenFilter
public LightenFilter()
- Constructs a default LightenFilter.
By default the Image is lightened 50%.
- See Also:
- LightenFilter(double), setPercent
LightenFilter
public LightenFilter(double percent)
- Constructs a LightenFilter.
- Parameters:
- percent - the percent to lighten the image when filtering.
- See Also:
- LightenFilter(), setPercent
filterRGB
public int filterRGB(int x,
int y,
int rgb)
- Filters an RGB value by the current lighten percentage.
- Parameters:
- x - unused
- y - unused
- rgb - the rgb value to lighten
- Returns:
- the lightened rgb value
- Overrides:
- filterRGB in class RGBImageFilter
getPercent
public double getPercent()
- Gets the percentage to fade when filtering.
- Returns:
- the percentage to fade
- See Also:
- setPercent
setPercent
public void setPercent(double percent) throws IllegalArgumentException
- Sets the percentage to fade when filtering.
- Parameters:
- percent - the percentage to fade
- Throws: IllegalArgumentException
- if the specified percentage value is unacceptable
- See Also:
- getPercent
All Packages Class Hierarchy This Package Previous Next Index